@import './mixin.scss';

//覆盖一些element-ui样式、
$label_font_size: 14px; // 标签字体大小
$content_font_size: 12px; // 标签字体大小
$primary-color: #4786c3; //主色调

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-breadcrumb {
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

//暂时性解决dialog 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//文章页textarea修改样式
.article-textarea {
  textarea {
    padding-right: 40px;
    resize: none;
    border: none;
    border-radius: 0px;
    border-bottom: 1px solid #bfcbd9;
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

//dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// label
.el-submenu__title {
  font-size: $label_font_size;
}

.el-radio__label {
  font-size: $label_font_size;
}

// content
.el-menu-item {
  font-size: $content_font_size;
}

.el-form-item__label {
  font-size: $content_font_size;
}

.el-button {
  font-size: $content_font_size;
}

.el-form-item__content {
  font-size: $content_font_size;
}

.el-timeline {
  font-size: $content_font_size;
}

.el-button--primary {
  border-radius:3px;
  font-size: $content_font_size;
}

.el-radio__label {
  font-size: $content_font_size;
}

.el-input__inner,
.el-textarea__inner,
.el-select-dropdown__item {
  font-size: $content_font_size;
}

.el-message,
.el-message--erro,
.el-message--success {
  font-size: $content_font_size !important;
}

.el-checkbox__label {
  font-size: $content_font_size;
}

// 方向
.nav .el-icon-arrow-left {
  cursor: pointer;
  font-size: 13px;
  color: #b60028;
  font-weight: 700;
  padding: 0 5px;
}

// .el-scrollbar__wrap {
//   overflow-x: hidden;
// }
/*叶子按钮样式*/
.h30Btn {
  min-width: 80px;
  height: 30px;
  padding: 1px 10px !important;
  border: 1px solid #e2e2e2;
}

.el-switch.is-checked .el-switch__core {
  @include themeColor_bg();
  @include themeColor_text()
}

.el-radio__input.is-checked .el-radio__inner {
  @include themeColor_bg();
  @include themeColor_text()
}

.el-date-table td.current:not(.disabled) span {
  @include themeColor_bg();
}

// dialog
.el-dialog__body {
  padding: 20px 20px;
}

.el-dialog__header {
  line-height: 45px;
  padding: 0px 20px;
  @include themeColor_bg();

}

.el-dialog__title {
  color: white;
  font-size: $label_font_size;
}

.el-dialog__headerbtn .el-dialog__close {
  color: white;
}

.el-dialog__headerbtn {
  top: 15px;
}

// cascder
.el-cascader-node__label {
  font-size: $content_font_size,
}


.has-time {
  width: min-content;
}

// 解决换肤时导致的样式覆盖问题
.el-message-box {
  border: none !important;
}

.el-message-box--center .el-message-box__header {
  padding-top: 0 !important;
}

.el-dialog__header {
  padding: 0px 20px !important;
}

.el-button--primary {
  @include themeColor_bg();
  border-color: #DCDFE6 !important;
  &:hover {
    color: white !important;
    @include themeColor_bg()
  }
}
.el-button--text  {
  @include themeColor_text()
}
.el-menu {
  .is-active-visit,.is-active {
    @include themeColor_text()
  }
}
.el-tabs__item ,.el-tag{
  @include themeColor_text()
}
.el-icon-close, .el-dialog__title{
  color:white !important;
}
.el-dialog{
  width: 40%;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after {
  right: 4% !important;
}